package com.njym.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * @program: chpp
 * @description:
 * @author: Mr.LI
 * @create: 2018-08-21 14:21
 **/
@TableName("sys_apply_channel")
public class SysApplyChannel extends Model<SysApplyChannel> {
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;
    @TableField("org_id")
    private String orgId;  // 机构代码
    @TableField("channel_code")
    private String channelCode;   // 应用代码
    @TableField("channel_name")
    private String channelName;  // 应用名称
    @TableField("input_code")
    private String inputCode;   // 拼音码
    @TableField("sort_no")
    private Integer sortNo;   // 排序
    @TableLogic
    private byte deleted; // 逻辑删除  0否 1是


    @Override
    protected Serializable pkVal() {
        return id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getChannelCode() {
        return channelCode;
    }

    public void setChannelCode(String channelCode) {
        this.channelCode = channelCode;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getInputCode() {
        return inputCode;
    }

    public void setInputCode(String inputCode) {
        this.inputCode = inputCode;
    }

    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

    public byte getDeleted() {
        return deleted;
    }

    public void setDeleted(byte deleted) {
        this.deleted = deleted;
    }
}
